import { registerMicroApps, start } from 'qiankun';
import { useEffect } from 'react';
import { Layout,  } from 'antd';
import styles from './index.less';
import { Link } from 'umi'

export default function IndexPage() {
  useEffect(() => {
    registerMicroApps([{
      name: 'detail',
      entry: 'http://localhost:8001',
      container: '#contaienr',
      activeRule: '/'
    }])
    start()
  }, [])
  return (
    <div>
      <h1 className={styles.title}>Page index</h1>
      <div id="container"></div>
    </div>
  );
}
